home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4487 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: solon.com!not-for-mail
  2. From: timmyd@netcom.com (Tim DeBenedictis)
  3. Newsgroups: comp.lang.c,comp.lang.c.moderated
  4. Subject: Are there std. Floating Pt. Exts.?
  5. Date: 4 Feb 1996 16:45:22 -0600
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4f3cu2$s1h@solutions.solon.com>
  10. NNTP-Posting-Host: solutions.solon.com
  11. X-Newsreader: TIN [version 1.2 PL1]
  12.  
  13. (Sorry about the abbreviated headline; it should have read "Standard 
  14. Floating Point Extensions")
  15.  
  16. There are a number of useful math functions which are not included in the 
  17. standard ANSI C math library, but seem to have a fairly standard usage 
  18. across many different implementations of the C language.  Some examples:
  19.  
  20. inf(), nan(): generate representations of infinity and not-a-number values
  21. isinf(), isnan(): tests for infinity and not-a-number values
  22. asinh(), atanh(): inverse hyperbolic sine and tangent
  23.  
  24. I've been doing a lot of Mac programming lately, and Apple provides this
  25. header file called <fp.h> which contains definitions for these and other
  26. such routines.  Interestingly, this header contains the following comment:
  27.  
  28. /*******************************************************************************
  29. *                                                                              *
  30. *      File fp.h   -   PowerPC and 68K Macintosh                               *
  31. *                                                                              *
  32. *      A collection of numerical functions designed to facilitate a wide       *
  33. *      range of numerical programming. It is modeled after the Floating-Point  *
  34. *      C Extensions (FPCE) proposed technical draft of the Numerical C         *
  35. *      Extensions Group's requirements (NCEG / X3J11.1).                       *
  36.  
  37. This leads me to believe that there -is- actually a somewhat standard set 
  38. of floating-point extensions.  Does anybody know where I could obtain the 
  39. standard?  or, better yet, obtain a draft copy of the new floating-point 
  40. extensions header file?  Or, even better yet, obtain a 
  41. reasonably-portable source code implementation of those new functions?
  42. (I've written all of the above examples myself!)
  43.  
  44. Thanks in advance,
  45.  
  46. -Tim DeBenedictis
  47.